package com.boarsoft.config.manager;

import java.util.concurrent.ConcurrentHashMap;

/**
 * ConfigManager配置类管理器，用于存放当前所有配置类 可适配不同配置中心
 *
 */
public class PropConfigManager {
	private static ConcurrentHashMap<String, Object> configMap = new ConcurrentHashMap<>();

	public static void addResource(String resourceId, Object obj) {
		configMap.put(resourceId, obj);
	}

	public static Object getResource(String resourceId) {
		return configMap.get(resourceId);
	}

	public static ConcurrentHashMap<String, Object> getAllResource() {
		return configMap;
	}

    public static ConcurrentHashMap<String, Object> getAllResources() {
		return configMap;
    }
}
